shared-domain-ux

(0 reviews)

TMF 632 - Retrieve Organizations By ID

This operation retrieves a Organization entity. Attribute selection is enabled for all first level attributes.
URL
https://[localhost]:[port]/shared-domain-ux/tmf-api/partyManagement/v1/{businessId}/organization/{id}
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
idstringorganization by idY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y
Query Param
nametypedescriptionrequired
organizationTypestringType of organization (example - Multiline)N
fieldsstringComma-separated properties to provide in responseN
Request to retrieve organizations by id:
Query with ID
curl --location 'https://nonprod.{bgid}.esb.cloud.lla.com/test/shared-domain-ux-{bgid}/tmf-api/partyManagement/v1/{businessId}/organization/{id}' \
--header 'client_id: xxxxxxxxx' \
--header 'client_secret: xxxxxxxxxxx' \
--header 'X-Correlation-ID: {{$guid}}'
Response
{
    "id": "744341234",
    "name": "744341234-MAG",
    "organizationType": "B2C",
    "status": "Active",
    "existsDuring": {
         "startDateTime": "1967-09-26T00:00:00.246Z",
        "endDateTime": ""
         },
    "partyCharacteristic": [
        {
        "name": "Group Details",
        "valueType": "object",
        "value": {
            "adminCount": "",
            "deviceCount": "0",
            "groupMembers": "0",
            "lastActivityTime": "0",
            "maxSubscriber": "0",
            "maxUserCount": "0",
            "SubscriberCount": "0",
            "SubscriberMemberCount": "0",
            "UserCount": "0",
        }
     }
    ],
    "contactMedium": [
        {
            "mediumType": "NotifyMembers"
        }
    ],
    "relatedParty": [
        {
            "id": "0-1-5-36995",
            "role": "Owner",
            "@type": "ObjectId"
        },
        {
            "id": "0-1-5-36989",
            "role": "Member",
            "@type": "ObjectId"
        },
        {
            "id": "0-1-5-37031",
            "role": "Member",
            "@type": "ObjectId"
        }
    ]
}
Definitions

Each of the response parameters is detailed.

nametypedescription
idstringUnique identifier of the individual.
hrefstringHyperlink to access the individual.
aristocraticTitlestringAristocratic title such as Baron, Graf, Earl.
birthDatedatetimeBirth date of the individual.
countryOfBirthstringCountry where the individual was born.
deathDatedatetimeDate of death of the individual.
familyNamestringNon-chosen or inherited family name (last name).
familyNamePrefixstringFamily name prefix.
formattedNamestringFully formatted name with all necessary punctuation and language-specific formatting.
fullNamestringFull name including first, middle, and last names.
genderstringGender of the individual.
generationstringGeneration suffix such as Sr, Jr, III.
givenNamestringFirst name of the individual.
legalNamestringLegal or birth name used for official purposes.
locationstringTemporary current location of the individual.
maritalStatusstringMarital status of the individual.
middleNamestringMiddle name or initial.
nationalitystringNationality of the individual.
placeOfBirthstringPlace where the individual was born.
preferredGivenNamestringPreferred name or nickname used by the individual.
descriptionstringHonorific or title such as Dr, Sir, Prof.
contactMedium[].mediumTypestringType of contact medium such as email, telephone, or postal address.
contactMedium[].preferredbooleanIndicates whether this is the preferred contact medium.
contactMedium[].characteristic.citystringCity associated with the contact medium.
contactMedium[].characteristic.contactTypestringContact type such as mobile, home, office, or shipping.
contactMedium[].characteristic.countrystringCountry associated with the contact medium.
contactMedium[].characteristic.emailAddressstringEmail address.
contactMedium[].characteristic.faxNumberstringFax number.
contactMedium[].characteristic.phoneNumberstringPrimary phone number.
contactMedium[].characteristic.postCodestringPostal code.
contactMedium[].characteristic.socialNetworkIdstringSocial network identifier.
contactMedium[].characteristic.stateOrProvincestringState or province.
contactMedium[].characteristic.street1stringPrimary street address.
contactMedium[].characteristic.street2stringSecondary street address details.
contactMedium[].validFor.startDateTimedatetimeStart date of the contact medium validity period.
contactMedium[].validFor.endDateTimedatetimeEnd date of the contact medium validity period.
creditRating[].creditAgencyNamestringName of the agency providing the credit rating.
creditRating[].creditAgencyTypestringType of credit agency.
creditRating[].ratingReferencestringReference corresponding to the credit rating.
creditRating[].ratingScoreintegerCreditworthiness score assigned to the individual.
creditRating[].validFor.startDateTimedatetimeCredit rating validity start date.
creditRating[].validFor.endDateTimedatetimeCredit rating validity end date.
disability[].disabilityCodestringDisability code.
disability[].disabilityNamestringDisability name.
disability[].validFor.startDateTimedatetimeDisability validity start date.
disability[].validFor.endDateTimedatetimeDisability validity end date.
externalReference[].externalReferenceTypestringType of external reference.
externalReference[].namestringName of the external reference.
individualIdentification[].identificationIdstringIdentification number.
individualIdentification[].identificationTypestringIdentification type such as passport, national ID, driver's license, or SSN.
individualIdentification[].issuingAuthoritystringAuthority that issued the identification.
individualIdentification[].issuingDatedatetimeDate the identification was issued.
individualIdentification[].attachment.idstringUnique attachment identifier.
individualIdentification[].attachment.hrefstringURI reference for the attachment.
individualIdentification[].attachment.attachmentTypestringAttachment type such as document, image, or video.
individualIdentification[].attachment.contentstringBase64 encoded content of the attachment.
individualIdentification[].attachment.descriptionstringDescription of the attachment.
individualIdentification[].attachment.mimeTypestringMIME type of the attachment.
individualIdentification[].attachment.namestringName of the attachment.
individualIdentification[].attachment.urlstringURL of the attachment.
individualIdentification[].attachment.sizestringSize of the attachment.
individualIdentification[].attachment.validFor.startDateTimedatetimeAttachment validity start date.
individualIdentification[].attachment.validFor.endDateTimedatetimeAttachment validity end date.
languageAbility[].isFavouriteLanguagebooleanIndicates whether this is the individual's preferred language.
languageAbility[].languageCodestringLanguage code based on RFC 5646.
languageAbility[].languageNamestringLanguage name.
languageAbility[].listeningProficiencystringListening proficiency level.
languageAbility[].readingProficiencystringReading proficiency level.
languageAbility[].speakingProficiencystringSpeaking proficiency level.
languageAbility[].writingProficiencystringWriting proficiency level.
languageAbility[].validFor.startDateTimedatetimeLanguage validity start date.
languageAbility[].validFor.endDateTimedatetimeLanguage validity end date.
otherName[].aristocraticTitlestringAlternate aristocratic title.
otherName[].familyNamestringAlternate family name.
otherName[].familyNamePrefixstringAlternate family name prefix.
otherName[].formattedNamestringFormatted alternate name.
otherName[].fullNamestringAlternate full name.
otherName[].generationstringAlternate generation suffix.
otherName[].givenNamestringAlternate given name.
otherName[].legalNamestringAlternate legal name.
otherName[].middleNamestringAlternate middle name.
otherName[].preferredGivenNamestringAlternate preferred or chosen name.
otherName[].titlestringAlternate title such as Dr, Sir, or Prof.
otherName[].validFor.startDateTimedatetimeAlternate name validity start date.
otherName[].validFor.endDateTimedatetimeAlternate name validity end date.
partyCharacteristic[].namestringName of the characteristic.
partyCharacteristic[].valueTypestringData type of the characteristic value.
partyCharacteristic[].valueanyValue of the characteristic.
relatedParty[].'@referredType'stringType of the referenced entity.
relatedParty[].idstringUnique identifier of the related party.
relatedParty[].hrefstringReference URI of the related party.
relatedParty[].namestringName of the related party.
relatedParty[].rolestringRole played by the related party.
skill[].commentstringComment associated with the skill evaluation.
skill[].evaluatedLevelstringEvaluated skill proficiency level.
skill[].skillCodestringSkill code.
skill[].skillNamestringName of the skill.
skill[].validFor.startDateTimedatetimeSkill validity start date.
skill[].validFor.endDateTimedatetimeSkill validity end date.
statusstringStatus of the individual. Allowed values: initialized, validated, deceased.
taxExemptionCertificate[].idstringUnique identifier of the tax exemption certificate.
taxExemptionCertificate[].attachment.idstringUnique attachment identifier.
taxExemptionCertificate[].attachment.hrefstringURI reference to the attachment.
taxExemptionCertificate[].attachment.attachmentTypestringType of attachment such as document, image, or video.
taxExemptionCertificate[].attachment.contentstringBase64 encoded attachment content.
taxExemptionCertificate[].attachment.descriptionstringDescription of the attachment.
taxExemptionCertificate[].attachment.mimeTypestringMIME type of the attachment.
taxExemptionCertificate[].attachment.namestringName of the attachment.
taxExemptionCertificate[].attachment.urlstringURL of the attachment.
taxExemptionCertificate[].attachment.size.amountnumberNumeric size value of the attachment.
taxExemptionCertificate[].attachment.size.unitsstringUnit of measurement for attachment size.
taxExemptionCertificate[].attachment.validFor.startDateTimedatetimeAttachment validity start date.
taxExemptionCertificate[].attachment.validFor.endDateTimedatetimeAttachment validity end date.
@baseTypestringDefines the superclass when sub-classing.
@schemaLocationstringURI of the JSON schema defining additional attributes and relationships.
@typestringDefines the subclass entity name.

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method PATCH not allowed for : /{businessId}/organization/{id}"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /{businessId}/organization/{id} for Business Id: xxxx not implemented"
    }]
  }

#####

#

Reviews